﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Resources/TPLOAMPage.Master" AutoEventWireup="true"
    CodeBehind="staffviewloa.aspx.cs" Inherits="TPLOAWebClient.staffviewloa" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="navbarPHolder" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
        <ContentTemplate>
            <asp:Button ID="profileBtn" runat="server" Font-Bold="False" OnClick="profileBtn_Click"
                Text="Profile" CssClass="navbtnCSS" CausesValidation="False" />
            <asp:Button ID="viewloaBtn" runat="server" Font-Bold="False" OnClick="viewloaBtn_Click"
                Text="View LOA Status" CssClass="navbtnCSS" CausesValidation="False" />
            <asp:Button ID="submitloaBtn" runat="server" Font-Bold="False" OnClick="submitloaBtn_Click"
                Text="Submit LOA" CssClass="navbtnCSS" CausesValidation="False" />
            <asp:Button ID="faqBtn" runat="server" Font-Bold="False" OnClick="faqBtn_Click" 
                Text="FAQ" CausesValidation="False"  CssClass="navbtnCSS"/>
            <asp:Button ID="otherservicesBtn" runat="server" Font-Bold="False" OnClick="otherservicesBtn_Click"
                Text="Other Services" CssClass="navbtnCSS" CausesValidation="False" />
            <asp:Button ID="LogoutBtn" runat="server" Font-Bold="False" OnClick="LogoutBtn_Click"
                Text="Logout" CssClass="navbtnCSS" CausesValidation="False" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="sectionTitlePHolder" runat="server">
    View LOA Status
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="mainContentPHolder" runat="server">
    <asp:Label ID="lblResult" runat="server" ForeColor="Red"></asp:Label>
    <asp:DataList ID="itemDlist" runat="server" BorderStyle="None" Width="100%">
        <HeaderTemplate>
            <table border="1px" rules="rows" style="width: 100%;">
                <tr>
                    <td>
                        <b>ID</b>
                    </td>
                    <td>
                        <b>Type</b>
                    </td>
                    <td>
                        <b>Date Submitted</b>
                    </td>
                    <td>
                        <b>Status</b>
                    </td>
                    <td>
                        <b>Date Reviewed</b>
                    </td>
                    <td>
                        <b>Admin No.</b>
                    </td>
                    <td>
                        <b>Review</b>
                    </td>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <asp:Label ID="idLbl" runat="server" Text='<%# Eval("LOAID") %>'></asp:Label>
                </td>
                <td>
                    <asp:Label ID="typeLbl" runat="server" Text='<%# Eval("Type") %>'></asp:Label>
                </td>
                <td>
                    <asp:Label ID="datesubmittedLbl" runat="server" Text='<%# Eval("SubmitDateTime", "{0:c}") %>'></asp:Label>
                </td>
                <td>
                    <asp:Label ID="statusLbl" runat="server" Text='<%# Eval("ReviewStatus", "{0:c}") %>'></asp:Label>
                </td>
                <td>
                    <asp:Label ID="datereviewedLbl" runat="server" Text='<%# Eval("ReviewDateTime", "{0:c}") %>'></asp:Label>
                </td>
                <td>
                    <asp:Label ID="adminnoLbl" runat="server" Text='<%# Eval("StudentAdminNo", "{0:c}") %>'></asp:Label>
                </td>
                <td>
                    <asp:HyperLink ID="viewLbl" runat="server" NavigateUrl='<%# "staffview.aspx?details="+Eval("LOAID") %>'
                        Text="View"></asp:HyperLink>
                    <asp:HyperLink ID="modifyLbl" runat="server" NavigateUrl='<%# "staffmodify.aspx?details="+Eval("LOAID") %>'
                        Text="Modify"></asp:HyperLink>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:DataList>
</asp:Content>
